{% extends "stream/base.html"%}
{% load stream_filters %}

{% block extrastyle %}
<link rel="stylesheet" type="text/css" href="/media/stream/css/content_controls.css" />
{% endblock %}

{% block content_controls %}
{% endblock %}

{% block content %}
{% if messages %}
<ul class="messages">
	{% for message in messages %}
	<li>{{ message }}</li>
	{% endfor %}
</ul>
{% endif %}

<h2>{{ username }}'s Life</h2>

<div id="user_data">
	{{ user_data.icon }}
	{% ifnotequal username user.username %}
		{% if is_friend %}
	<a href="">remove friend</a>
		{% else %}
	<a href="">add friend</a>
		{% endif %}
	{% endifnotequal %}
	<a href="">profile</a>
	<a href="">friends</a>
	<a href="">feed</a>
</div>

{% if feed_date_list %}
<div id="feed_list">
	{% for day in day_list reversed %}
	<h3 class="day">{{ day|date:"F d, Y" }}</h3>
		{% for entry in feed_date_list|objIndex:day %}
		<ul class="{{ entry.feed.slug }} feed_entry {% cycle row1,row2 %}">
			<li class="time">{{ entry.date|date:"g:i a" }}</li>
			<li class="source_favicon"><a href="{{ entry.feed.url }}"><img src="{{ entry.feed.favicon_url }}" alt="[feed location]" title="feed location"/></a></li>
			<li class="source_title">{{ entry.feed_data.title }}</li>
			<li class="title"><a href="{{ entry.link }}">{{ entry.title }}</a></li>
		</ul>
		{% endfor %}
		<br />
	{% endfor %}
</div>
{% else %}
	{% if user.is_authenticated %}
		{% ifequal user.username username %}
		<p> You haven't added any feeds yet. Adding feeds is easy just check your <a href="/settings/feeds/">feed settings</a></p>
		{% else %}
		<p> This user hasn't added any feeds </p>
		{% endifequal %}
	{% else %}
	<p> This user hasn't added any feeds </p>
	{% endif %}
{% endif %}


{% endblock %}
